<?php
/**
 * 后台会员中心管理
 * @author cjli
 *
 */
class OfflineAction extends AdminAction
{
	public function _initialize()
	{
		parent::_initialize();
	}
//在线预约首页
	public function line_list(){
	global $user;
	$where = array();
	if(isset($_POST['search'])){
		if(isset($_POST['name']) && $_POST['name']){
		$where['name'] = array('like', '%'.trim($_POST['name']).'%');
		}
	}
		$pageRows = 10;
		$russia_db = D("online_shop");
		$count = $russia_db->count();
		import("ORG.Util.Page");
		$Page = new Page($count,$pageRows);
		$pageShow = $Page->show();
		$russia_db->limit($Page->firstRow.','.$Page->listRows);
		$russia_db->where($where);

		$russia_info = $russia_db->select();
		$this->assign('pageShow', $pageShow);
		$this->assign('russia_info',$russia_info);
		$this->display('line_list');
	}
}